package main

import (
	"imooc.com/ccmouse/learngo/interface/design/create/generator/all"
	"log"
)

//生成器模式
//分步骤创建复杂对象

func main() {
	IglooBuilder := &all.Igloo{}
	builder := all.NewBuildDirector(IglooBuilder)

	house := builder.Direct()
	log.Printf("%+v", house)
}
